ESRI.ArcGIS.Mobile.Client
UICommand Constructor(String,Generic Action,Generic Predicate)
See Also  Send Feedback
ESRI.ArcGIS.Mobile.Client Namespace > UICommand Class > UICommand Constructor : UICommand Constructor(String,Generic Action,Generic Predicate)

text
The caption to display in the user-interface for the command.
execute
Delegate to be invoked when the command's Execute method is called.
canExecute
Delegate to be invoked when the command's CanExecute method is called.
Initializes a new instance of the UICommand class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal text As String, _
   ByVal execute As Action(Of Object), _
   ByVal canExecute As Predicate(Of Object) _
)
C# 
public UICommand( 
   string text,
   Action<object> execute,
   Predicate<object> canExecute
)

Parameters

text
The caption to display in the user-interface for the command.
execute
Delegate to be invoked when the command's Execute method is called.
canExecute
Delegate to be invoked when the command's CanExecute method is called.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also